<?php
/**
 * 
 * @author tangbl
 * 
 */
class ProductRelationViewModel extends ViewModel {
	
	public $viewFields = array(
			
     	'Product'=>array(
     		'_type'=>'LEFT',
     		'ctitle',
     		'title',
     		'type',
     		'_as'=>'p'
     	),
			
     	'ProductRelation'=>array(
     		'_as'=>'r',
     		'rprice',
     		'tid',
     		'pid',
     		'_on'=>'p.id=r.tid'
     	)
   );
	
}
?>